class CreateStatuses < ActiveRecord::Migration
  def self.up
    create_table :statuses do |t|
      t.string  :name
      t.boolean :closed, :default => false
      t.integer :taggings, :default => 0

      t.timestamps
    end

    Status.create( :name => 'new' )
    Status.create( :name => 'accepted' )
    Status.create( :name => 'in progress' )
    Status.create( :name => 'testing' )
    Status.create( :name => 'fixed', :closed => true )
    Status.create( :name => 'closed', :closed => true )
  end

  def self.down
    drop_table :statuses
  end
end
